package com.cj.ctyl.mapper;

import com.cj.ctyl.entity.SysUsers;

import java.util.List;

/**
 * @Author: Alex
 * @Description: 用户
 * @Date: 2021/8/14
 */
public interface SysUserMapper {

    /**
     * 根据id查询用户
     *
     * @param id 主键
     * @return SysUsers
     */
    SysUsers selectSysUserById(Long id);

    /**
     * 根据账号查询用户
     * @param account 账号
     * @return SysUsers
     */
    SysUsers selectSysUserByAccount(String account);

    /**
     * 查询用户信息
     * @param sysUsers
     * @return SysUsers
     */
    SysUsers selectSysUser(SysUsers sysUsers);


    /**
     * 查询用户集合
     *
     * @param sysUsers sysUsers
     * @return List<sysUsers>
     */
    List<SysUsers> selectSysUserList(SysUsers sysUsers);

    /**
     * 添加用户
     *
     * @param sysUsers sysUsers
     * @return 影响行
     */
    int insertSysUser(SysUsers sysUsers);

    /**
     * 修改用户
     *
     * @param sysUsers sysUsers
     * @return 影响行
     */
    int updateSysUser(SysUsers sysUsers);

}
